[srm-cvs] CVS Update: - Fix umask issues with creating the session save files

From: <d.rethans[@]jdimedia.nl>
Date: Thu Apr 18 2002 - 08:45:11 CEST

Date: Thu Apr 18 08:45:11 CEST 2002
User: Derick Rethans
Directory: srm/main/src

Log Message:
 [0.25]
 - Fix umask issues with creating the session save files
 
Modified files:
           srm/main/src/srm_storage.c (version: 1.30)

[FILE: /srm/main/src/srm_storage.c]

--- srm/main/src/srm_storage.c:1.29 Mon Jan 14 18:53:53 2002 GMT
+++ srm/main/src/srm_storage.c Thu Apr 18 04:45:11 2002 GMT
@@ -1,4 +1,4 @@
-/* $Id: cvstemp,v 1.29 2002/01/14 19:53:53 peter Exp $ */
+/* $Id: cvstemp,v 1.30 2002/04/18 06:45:11 derick Exp $ */
 
 /* The contents of this file are subject to the Vulcan Logic Public
  * License Version 1.1 (the "License"); you may not use this file
@@ -115,6 +115,7 @@
         dump_val->hash = store;
         serialize (dump_val, (srm_ui8**) &data, &dlength);
 
+ umask(066);
         dump = fopen (filename, "w");
         if (dump != NULL) {
                 fwrite (data, dlength, 1, dump);
@@ -122,6 +123,7 @@
         } else {
                 srm_fmt_message (LL_SHUTDOWN, "Store", "Could not create dump (%s/%s) of session data", path, fname);
         }
+ umask(0);
 }
 
 void srm_store_close (STORE_SETTINGS_DEF)
Received on Thu Apr 18 09:41:36 2002

This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 09:00:03 CET