Lines Matching refs:ptemp
58 char *ptemp = "/etc/ptmp"; variable
92 if (copyfile(passwd, ptemp)) in main()
95 if (stat(ptemp, &sbuf) < 0) { in main()
104 if (editfile(editor, ptemp, passwd, &n_mtime)) { in main()
105 if (sanity_check(ptemp, &n_mtime, passwd)) in main()
117 if (chmod(ptemp, (osbuf.st_mode & 0644)) < 0) { in main()
118 (void) fprintf(stderr, "vipw: %s: ", ptemp); in main()
122 if (rename(ptemp, passwd) < 0) { in main()
123 (void) fprintf(stderr, "vipw: %s: ", ptemp); in main()
130 (void) fprintf(stderr, "vipw: %s ", ptemp); in main()
152 if (chmod(ptemp, (osbuf.st_mode & 0644)) < 0) { in main()
153 (void) fprintf(stderr, "vipw: %s: ", ptemp); in main()
162 if (rename(ptemp, passwd) < 0) { in main()
163 (void) fprintf(stderr, "vipw: %s: ", ptemp); in main()
170 (void) fprintf(stderr, "vipw: %s ", ptemp); in main()
186 (void) unlink(ptemp); in main()