Mercurial > pkg
diff src/save-acls.c @ 22:43cfd1a2c523
create program to save acls.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 10 Jan 2013 07:36:04 +0000 |
parents | |
children | 4d1bc23e4d09 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/save-acls.c Thu Jan 10 07:36:04 2013 +0000 1.3 @@ -0,0 +1,10 @@ 1.4 +#include <unistd.h> 1.5 + 1.6 +main( int argc, char ** argv){ 1.7 + setreuid(geteuid(), geteuid()); 1.8 + setregid(getegid(), getegid()); 1.9 + system("getfacl -R /usr /opt /etc > /etc/acls"); 1.10 +} 1.11 + 1.12 + 1.13 +