Changeset View
Changeset View
Standalone View
Standalone View
kcheckpass/kcheckpass.c
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Line(s) | |||||
261 | #if HAVE_PR_SET_DUMPABLE | 261 | #if HAVE_PR_SET_DUMPABLE | ||
262 | prctl(PR_SET_DUMPABLE, 0); | 262 | prctl(PR_SET_DUMPABLE, 0); | ||
263 | #endif | 263 | #endif | ||
264 | #if HAVE_PROC_TRACE_CTL | 264 | #if HAVE_PROC_TRACE_CTL | ||
265 | int mode = PROC_TRACE_CTL_DISABLE; | 265 | int mode = PROC_TRACE_CTL_DISABLE; | ||
266 | procctl(P_PID, getpid(), PROC_TRACE_CTL, &mode); | 266 | procctl(P_PID, getpid(), PROC_TRACE_CTL, &mode); | ||
267 | #endif | 267 | #endif | ||
268 | 268 | | |||
269 | #ifdef HAVE_OSF_C2_PASSWD | | |||
270 | initialize_osf_security(argc, argv); | | |||
271 | #endif | | |||
272 | | ||||
273 | /* Make sure stdout/stderr are open */ | 269 | /* Make sure stdout/stderr are open */ | ||
274 | for (c = 1; c <= 2; c++) { | 270 | for (c = 1; c <= 2; c++) { | ||
275 | if (fcntl(c, F_GETFL) == -1) { | 271 | if (fcntl(c, F_GETFL) == -1) { | ||
276 | if ((nfd = open("/dev/null", O_WRONLY)) < 0) { | 272 | if ((nfd = open("/dev/null", O_WRONLY)) < 0) { | ||
277 | message("cannot open /dev/null: %s\n", strerror(errno)); | 273 | message("cannot open /dev/null: %s\n", strerror(errno)); | ||
278 | exit(10); | 274 | exit(10); | ||
279 | } | 275 | } | ||
280 | if (c != nfd) { | 276 | if (c != nfd) { | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |