From 34d2743a757070892e72c750d8d7e87e86abf9ce Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 26 Apr 1998 09:52:22 +0000 Subject: [PATCH] check return value from changeuser git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4813 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/pop_pass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/popper/pop_pass.c b/appl/popper/pop_pass.c index b7a9f2614..1d48d366e 100644 --- a/appl/popper/pop_pass.c +++ b/appl/popper/pop_pass.c @@ -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 */