Ignore:
Timestamp:
2002-06-17T21:19:13+12:00 (22 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).

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.