Check-in [01c5bfc689]
Overview
Comment:Updated to set umask on startup
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:01c5bfc689acd294355a5937b2210fcb65b407f1
User & Date: rkeene on 2015-03-20 01:50:01
Other Links: manifest | tags
Context
2015-03-20
03:13
Updated to allow users to specify permissions on files by their SHA1 in addition to filename check-in: 79c3658a52 user: rkeene tags: trunk
01:50
Updated to set umask on startup check-in: 01c5bfc689 user: rkeene tags: trunk
01:46
Updated to lowercase permissions read from the database, for security check-in: 0ab26b4975 user: rkeene tags: trunk
Changes

Modified appfsd.c from [fe7e6328bd] to [6a6fdd4f92].

  2165   2165   	}
  2166   2166   
  2167   2167   	argv0 = argv[0];
  2168   2168   
  2169   2169   	argc--;
  2170   2170   	argv++;
  2171   2171   
         2172  +	/*
         2173  +	 * Set appropriate umask
         2174  +	 */
         2175  +	umask(022);
         2176  +
  2172   2177   	/*
  2173   2178   	 * Set global variables, these should be configuration options.
  2174   2179   	 */
  2175   2180   	appfs_cachedir = APPFS_CACHEDIR;
  2176   2181   
  2177   2182   	/*
  2178   2183   	 * Set global variable for "boot time" to set a time on directories