[vhffs-dev] [1418] added umask() in tuxshell just before fork()ing the software, it can help |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1418
Author: gradator
Date: 2009-05-28 22:33:55 +0200 (Thu, 28 May 2009)
Log Message:
-----------
added umask() in tuxshell just before fork()ing the software, it can help
Modified Paths:
--------------
trunk/vhffs-shells/tuxshell.c
Modified: trunk/vhffs-shells/tuxshell.c
===================================================================
--- trunk/vhffs-shells/tuxshell.c 2009-05-28 18:22:30 UTC (rev 1417)
+++ trunk/vhffs-shells/tuxshell.c 2009-05-28 20:33:55 UTC (rev 1418)
@@ -217,6 +217,9 @@
args[1][ strlen(args[1])-1 ] = '\0';
}
+ /* change the umask to allow shared work */
+ umask (02);
+
/* ok, the command is clear, exec() it */
return (execvp(args[CMD_POS], args));