Don't fiddle with the modes with the -R flag...
authorKevin Layer <layer@ucbvax.Berkeley.EDU>
Thu, 29 Mar 1984 12:02:45 +0000 (04:02 -0800)
committerKevin Layer <layer@ucbvax.Berkeley.EDU>
Thu, 29 Mar 1984 12:02:45 +0000 (04:02 -0800)
SCCS-vsn: bin/chmod/chmod.c 4.2

usr/src/bin/chmod/chmod.c

index 28f08c5..d945b41 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)chmod.c     4.1 %G%";
+static char *sccsid = "@(#)chmod.c     4.2 %G%";
 
 /*
  * chmod options mode files
 
 /*
  * chmod options mode files
@@ -144,8 +144,6 @@ unsigned nm;
                exit(255);
        }
 ret:
                exit(255);
        }
 ret:
-       if ((savem & S_IFDIR) || (savem & S_IEXEC))
-               nm = nm | ((nm & 0444) >> 2);
        return(nm);
 }
 
        return(nm);
 }