Re: [Cvs-nserver-users] delete user problem
Brought to you by:
tyranny
From: Alexey M. <al...@hs...> - 2003-04-21 21:06:39
|
>>>>> "HK" == Heiko Kundlacz <hei...@qn...> writes: HK> If I want to delete the user with: HK> cvs -d /my_virtual_repo -x cvsadminbase HK> I get: HK> cvs [passwd abourted]: User cvsadminbase not found HK> Any idea? This is old bug: http://sourceforge.net/tracker/index.php?func=detail&aid=496674&group_id=28814&atid=394498 Does this help? Index: cvspasswd-file.c =================================================================== RCS file: /cvsroot/cvs-nserver/cvs-nserver/src/cvspasswd-file.c,v retrieving revision 1.2 diff -u -r1.2 cvspasswd-file.c --- cvspasswd-file.c 21 Apr 2003 20:16:34 -0000 1.2 +++ cvspasswd-file.c 21 Apr 2003 21:05:34 -0000 @@ -64,6 +64,7 @@ { char *passwd_line = NULL; size_t passwd_line_allocated = 0; + char* result = NULL; while (getline(&passwd_line, &passwd_line_allocated, cvspasswd) != -1) { @@ -94,6 +95,7 @@ break; case find_action_remove: + result = "remove succeeded"; break; case find_action_return: @@ -114,5 +116,5 @@ } if (passwd_line_allocated) free(passwd_line); - return NULL; + return result; } --alexm |