[hackers] [sbase] whoops, chmod = || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sat, 11 Jun 2011 01:32:33 +0200 (CEST)

changeset: 78:f398a5c45830
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat Jun 11 00:31:44 2011 +0100
files: chmod.c
description:
whoops, chmod =

diff -r 5306cfa4b08d -r f398a5c45830 chmod.c
--- a/chmod.c Sat Jun 11 00:30:07 2011 +0100
+++ b/chmod.c Sat Jun 11 00:31:44 2011 +0100
@@ -51,6 +51,9 @@
         case '-':
                 st.st_mode &= ~mode;
                 break;
+ case '=':
+ st.st_mode = mode;
+ break;
         }
         if(chmod(path, st.st_mode) == -1)
                 eprintf("chmod %s:", path);
Received on Sat Jun 11 2011 - 01:32:33 CEST

This archive was generated by hypermail 2.2.0 : Sat Jun 11 2011 - 01:36:06 CEST