Changeset 3667
- Timestamp:
- 09/30/08 01:29:28 (2 months ago)
- Files:
-
- 1 modified
-
plugins/opie-sync/src/opie_comms.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/opie-sync/src/opie_comms.c
r3251 r3667 36 36 37 37 #include <curl/curl.h> 38 #include <curl/types.h>39 38 #include <curl/easy.h> 40 39 … … 95 94 TempFile *tmpfile = g_malloc(sizeof(TempFile)); 96 95 char *template = g_strdup("/tmp/opie-sync.XXXXXX"); 96 mode_t current_mode = umask(S_IRWXG | S_IRWXO); 97 97 tmpfile->fd = mkstemp(template); 98 umask(current_mode); 98 99 if(tmpfile->fd == -1) { 99 100 osync_trace( TRACE_EXIT_ERROR, "failed to create temporary file" );
