check return value from changeuser
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4813 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -202,12 +202,12 @@ pop_pass (POP *p)
|
||||
if(stat(p->drop_name, &st) < 0 || !S_ISDIR(st.st_mode)){
|
||||
/* Make a temporary copy of the user's maildrop */
|
||||
/* and set the group and user id */
|
||||
if (pop_dropcopy(p,pw) != POP_SUCCESS) return (POP_FAILURE);
|
||||
if (pop_dropcopy(p, pw) != POP_SUCCESS) return (POP_FAILURE);
|
||||
|
||||
/* Get information about the maildrop */
|
||||
if (pop_dropinfo(p) != POP_SUCCESS) return(POP_FAILURE);
|
||||
} else {
|
||||
changeuser(p, pw);
|
||||
if(changeuser(p, pw) != POP_SUCCESS) return POP_FAILURE;
|
||||
if(pop_maildir_info(p) != POP_SUCCESS) return POP_FAILURE;
|
||||
}
|
||||
/* Initialize the last-message-accessed number */
|
||||
|
Reference in New Issue
Block a user