diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-10 14:24:56 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-10 14:24:56 +0800 |
commit | fa5b233767ca9d4e012839c28eb13628d2ebba63 (patch) | |
tree | b9f02d70672704dc7ea5726bc2d7e982c4d75dd9 /innbbsd | |
parent | f1803b4bcb86f3362dda2feba438056363faeed5 (diff) | |
download | pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.gz pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.bz2 pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.lz pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.xz pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.zst pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.zip |
Automake is a hard work, still not working now.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/piaip.automake@3152 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/Makefile.old (renamed from innbbsd/Makefile) | 0 | ||||
-rw-r--r-- | innbbsd/innbbsd.c | 8 |
2 files changed, 5 insertions, 3 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile.old index 0e6c75cc..0e6c75cc 100644 --- a/innbbsd/Makefile +++ b/innbbsd/Makefile.old diff --git a/innbbsd/innbbsd.c b/innbbsd/innbbsd.c index f71ab30c..bdbd2a59 100644 --- a/innbbsd/innbbsd.c +++ b/innbbsd/innbbsd.c @@ -266,7 +266,6 @@ static int CMDmode(client) ClientType *client; { - /* char cwdpath[MAXPATHLEN+1]; */ argv_t *argv = &client->Argv; extern ClientType INNBBSD_STAT; daemoncmd_t *p = argv->dc; @@ -312,8 +311,11 @@ CMDmode(client) fprintf(argv->out, "NONE NEWSFEEDS %d\r\n", NONENEWSFEEDS); fprintf(argv->out, "Max connections %d\r\n", Maxclient); #ifdef DEBUGCWD - getwd(cwdpath); - fprintf(argv->out, "Working directory %s\r\n", cwdpath); + { + char cwdpath[MAXPATHLEN+1]; + getcwd(cwdpath, sizeof(cwdpath)); + fprintf(argv->out, "Working directory %s\r\n", cwdpath); + } #endif if (Channel) for (i = 0, j = 0; i < Maxclient; ++i) { |