View | Details | Raw Unified | Return to bug 187653
Collapse All | Expand All

(-)pw_user.c 2015-05-20 00:59:27.732982683 +0200 (+3 lines)
Lines 332-337 Link Here
332
               if (a_name == NULL && pwd == NULL)      /* Try harder */
332
               if (a_name == NULL && pwd == NULL)      /* Try harder */
333
                       pwd = GETPWUID(atoi(a_uid->val));
333
                       pwd = GETPWUID(atoi(a_uid->val));
334
                if ( !(pwd->pw_fields & _PWF_SOURCE) && mode != M_PRINT )
335
                        errx(EX_DATAERR, "Operations on users other than local/NIS are not supported");
336
334
               if (pwd == NULL) {
337
               if (pwd == NULL) {
335
                       if (mode == M_PRINT && getarg(args, 'F')) {
338
                       if (mode == M_PRINT && getarg(args, 'F')) {
336
                               fakeuser.pw_name = a_name ? a_name->val : "nouser";
339
                               fakeuser.pw_name = a_name ? a_name->val : "nouser";

Return to bug 187653