From 6d53fa695bf28941fce2ad57a8ce43e962945f49 Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 21 Feb 1999 03:57:09 +0000 Subject: [PATCH] Ultrapenguin has not S_ISTXT (although ALLPERMS mentions). CVS patchset: 2820 CVS date: 1999/02/21 03:57:09 --- build/files.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build/files.c b/build/files.c index 8067771..8b5d119 100644 --- a/build/files.c +++ b/build/files.c @@ -1,8 +1,6 @@ #include "system.h" -#if !defined(ALLPERMS) -#define ALLPERMS 07777 -#endif +#define MYALLPERMS 07777 #include #include /* getOutputFrom() */ @@ -421,7 +419,7 @@ static int parseForAttr(char *buf, struct FileList *fl) if (ar->ar_fmodestr && !isAttrDefault(ar->ar_fmodestr)) { unsigned int ui; x = sscanf(ar->ar_fmodestr, "%o", &ui); - if ((x == 0) || (ar->ar_fmode & ~ALLPERMS)) { + if ((x == 0) || (ar->ar_fmode & ~MYALLPERMS)) { rpmError(RPMERR_BADSPEC, _("Bad %s() mode spec: %s"), name, buf); fl->processingFailed = 1; return RPMERR_BADSPEC; @@ -433,7 +431,7 @@ static int parseForAttr(char *buf, struct FileList *fl) if (ar->ar_dmodestr && !isAttrDefault(ar->ar_dmodestr)) { unsigned int ui; x = sscanf(ar->ar_dmodestr, "%o", &ui); - if ((x == 0) || (ar->ar_dmode & ~ALLPERMS)) { + if ((x == 0) || (ar->ar_dmode & ~MYALLPERMS)) { rpmError(RPMERR_BADSPEC, _("Bad %s() dirmode spec: %s"), name, buf); fl->processingFailed = 1; return RPMERR_BADSPEC; -- 2.7.4