Ultrapenguin has not S_ISTXT (although ALLPERMS mentions).
authorjbj <devnull@localhost>
Sun, 21 Feb 1999 03:57:09 +0000 (03:57 +0000)
committerjbj <devnull@localhost>
Sun, 21 Feb 1999 03:57:09 +0000 (03:57 +0000)
CVS patchset: 2820
CVS date: 1999/02/21 03:57:09

build/files.c

index 8067771..8b5d119 100644 (file)
@@ -1,8 +1,6 @@
 #include "system.h"
 
-#if !defined(ALLPERMS)
-#define        ALLPERMS        07777
-#endif
+#define        MYALLPERMS      07777
 
 #include <regex.h>
 #include <signal.h>    /* 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;