about summary refs log tree commit diff
path: root/nixos/modules/security
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 10:53:05 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 10:53:05 +0200
commita8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7 (patch)
tree8c91ec4ab1c31e04cd216ee99777f3157402a6bb /nixos/modules/security
parente7ab051cda36caefee79209be32d3f298ee0e6a4 (diff)
downloadnixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.tar
nixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.tar.gz
nixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.tar.bz2
nixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.tar.lz
nixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.tar.xz
nixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.tar.zst
nixlib-a8aa9f3fd4e6a6e53be4dc8429f4bf876715cda7.zip
setuid-wrapper.c: Remove tabs
Diffstat (limited to 'nixos/modules/security')
-rw-r--r--nixos/modules/security/setuid-wrapper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/security/setuid-wrapper.c b/nixos/modules/security/setuid-wrapper.c
index 007ffbc34fe9..dd1ef51019f3 100644
--- a/nixos/modules/security/setuid-wrapper.c
+++ b/nixos/modules/security/setuid-wrapper.c
@@ -31,7 +31,7 @@ int main(int argc, char * * argv)
        false `X.real' file, to allow arbitrary programs from being
        executed setuid.  */
     assert ((strncmp(self, wrapperDir, sizeof(wrapperDir)) == 0) &&
-	    (self[strlen(wrapperDir)] == '/'));
+            (self[strlen(wrapperDir)] == '/'));
 
     /* Make *really* *really* sure that we were executed as `self',
        and not, say, as some other setuid program.  That is, our
@@ -42,12 +42,12 @@ int main(int argc, char * * argv)
     assert (lstat(self, &st) != -1);
 
     //printf("%d %d\n", st.st_uid, st.st_gid);
-    
+
     assert ((st.st_mode & S_ISUID) == 0 ||
-	    (st.st_uid == geteuid()));
+            (st.st_uid == geteuid()));
 
     assert ((st.st_mode & S_ISGID) == 0 ||
-	    st.st_gid == getegid());
+            st.st_gid == getegid());
 
     /* And, of course, we shouldn't be writable. */
     assert (!(st.st_mode & (S_IWGRP | S_IWOTH)));
@@ -69,13 +69,13 @@ int main(int argc, char * * argv)
     real[len] = 0;
 
     close(fdSelf);
-    
+
     //printf("real = %s, len = %d\n", real, len);
 
     execve(real, argv, environ);
 
     fprintf(stderr, "%s: cannot run `%s': %s\n",
         argv[0], real, strerror(errno));
-    
+
     exit(1);
 }