Changeset 3154

Show
Ignore:
Timestamp:
17.06.2002 21:19:13 (17 years ago)
Author:
sjboddie
Message:

Fixed a bug in the usage logging code (on some compilers you need to call
open() with O_WRONLY or similar flag set in order to write to file).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.cpp

    r3036 r3154  
    696696  char *lfile = filename.getcstr(); 
    697697 
    698   int fd = open(lfile,O_APPEND); 
     698  int fd = open(lfile, O_WRONLY | O_APPEND); 
    699699   
    700700  if (fd == -1) { 
     
    703703    return false; 
    704704  } 
    705  
    706   //int fd = GSDL_GET_FILEDESC(log); 
    707705 
    708706  // lock_val is set to 0 if file is locked successfully