1.1 --- a/librazor/rpm.c Wed Jan 07 17:59:12 2009 +0000
1.2 +++ b/librazor/rpm.c Thu Jan 08 13:51:07 2009 +0000
1.3 @@ -17,6 +17,8 @@
1.4 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1.5 */
1.6
1.7 +#include "config.h"
1.8 +
1.9 #include <stdio.h>
1.10 #include <stddef.h>
1.11 #include <stdlib.h>
1.12 @@ -530,13 +532,8 @@
1.13 return -1;
1.14 }
1.15 return 0;
1.16 - case PIPE:
1.17 - case CDEV:
1.18 - case BDEV:
1.19 - case SOCK:
1.20 - printf("%s: unhandled file type %d\n", buffer, mode >> 12);
1.21 - return 0;
1.22 case LINK:
1.23 +#if HAVE_SYMLINK
1.24 if (installer_inflate(installer)) {
1.25 fprintf(stderr, "failed to inflate\n");
1.26 return -1;
1.27 @@ -551,6 +548,15 @@
1.28 return -1;
1.29 }
1.30 return 0;
1.31 +#else
1.32 + /* fall through */
1.33 +#endif
1.34 + case PIPE:
1.35 + case CDEV:
1.36 + case BDEV:
1.37 + case SOCK:
1.38 + printf("%s: unhandled file type %d\n", buffer, mode >> 12);
1.39 + return 0;
1.40 default:
1.41 printf("%s: unknown file type %d\n", buffer, mode >> 12);
1.42 return 0;