xinstall.c (1591) | xinstall.c (9911) |
---|---|
1/* 2 * Copyright (c) 1987, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 297 unchanged lines hidden (view full) --- 306 case -1: 307 serrno = errno; 308 (void)unlink(to_name); 309 err("forks: %s", strerror(errno)); 310 case 0: 311 execl(_PATH_STRIP, "strip", to_name, NULL); 312 err("%s: %s", _PATH_STRIP, strerror(errno)); 313 default: | 1/* 2 * Copyright (c) 1987, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 297 unchanged lines hidden (view full) --- 306 case -1: 307 serrno = errno; 308 (void)unlink(to_name); 309 err("forks: %s", strerror(errno)); 310 case 0: 311 execl(_PATH_STRIP, "strip", to_name, NULL); 312 err("%s: %s", _PATH_STRIP, strerror(errno)); 313 default: |
314 if (wait(&status) == -1 || status) | 314 if (wait(&status) == -1) |
315 (void)unlink(to_name); 316 } 317} 318 319/* 320 * usage -- 321 * print a usage message and die 322 */ --- 36 unchanged lines hidden --- | 315 (void)unlink(to_name); 316 } 317} 318 319/* 320 * usage -- 321 * print a usage message and die 322 */ --- 36 unchanged lines hidden --- |