diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 02:09:51 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 02:09:51 +0800 |
commit | dbebf26d241a20a2869fb530fb3d906e8e606690 (patch) | |
tree | 6eda5a4f3e208c0fe11e3b57fefd793149b7e920 /daemon | |
parent | b35b506fa5b8bc99d5d19ef495024aae2144ebea (diff) | |
download | pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.tar pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.tar.gz pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.tar.bz2 pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.tar.lz pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.tar.xz pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.tar.zst pttbbs-dbebf26d241a20a2869fb530fb3d906e8e606690.zip |
* force IDLEN only in CONVERT mode (for backward user behavior compatibility)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4559 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/logind/logind.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index c538966d..e6694228 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -1095,6 +1095,9 @@ client_cb(int fd, short event, void *arg) *uid_lastc = 0; break; } + // force to eliminate the extra field. + // (backward behavior compatible) + uid[IDLEN] = 0; #endif // accounts except free_auth [guest / new] // require passwd. |