X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fcheckstat.c;h=acfdfa890e8e58cf8f2d9ab6c66a29bedfaa026c;hb=fc47032ea92ffebcf00213f0c5d7568c58c3e5e5;hp=c98d6aa3d7fec9c4fc6db6b33b09ff2745277e4b;hpb=96ec6856f91f7f9031cfce4273c714d72cfe59ae;p=fs%2Flustre-release.git diff --git a/lustre/tests/checkstat.c b/lustre/tests/checkstat.c index c98d6aa..acfdfa8 100644 --- a/lustre/tests/checkstat.c +++ b/lustre/tests/checkstat.c @@ -90,15 +90,34 @@ main (int argc, char **argv) fprintf (stderr, "Can't parse numeric uid %s\n", optarg); return (1); } - } else { - struct passwd *pw = getpwnam (optarg); - - if (pw == NULL) + }else { + int i,flag=0; + char * temp ; + temp = optarg; + for(i=0;ipw_uid; + } - uid = pw->pw_uid; + else + uid=(uid_t)atol(optarg); } break;