Deleted Added
full compact
file.c (78162) file.c (79452)
1#ifndef lint
2static const char rcsid[] =
1#ifndef lint
2static const char rcsid[] =
3 "$FreeBSD: head/usr.sbin/pkg_install/lib/file.c 78162 2001-06-13 11:55:40Z des $";
3 "$FreeBSD: head/usr.sbin/pkg_install/lib/file.c 79452 2001-07-09 09:24:06Z brian $";
4#endif
5
6/*
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions

--- 208 unchanged lines hidden (view full) ---

220 warn("pipe()");
221 cleanup(0);
222 exit(2);
223 }
224 if (!tpid) {
225 dup2(pfd[0], 0);
226 for (fd = getdtablesize() - 1; fd >= 3; --fd)
227 close(fd);
4#endif
5
6/*
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions

--- 208 unchanged lines hidden (view full) ---

220 warn("pipe()");
221 cleanup(0);
222 exit(2);
223 }
224 if (!tpid) {
225 dup2(pfd[0], 0);
226 for (fd = getdtablesize() - 1; fd >= 3; --fd)
227 close(fd);
228 execl("/usr/bin/tar", "tar", Verbose ? "-xzvf" : "-xzf", "-", 0);
228 execl("/usr/bin/tar", "tar", Verbose ? "-xzvf" : "-xzf", "-",
229 (char *)0);
229 _exit(2);
230 }
231 close(pfd[0]);
232 for (;;) {
233 if ((r = fread(buf, 1, sizeof buf, ftp)) < 1)
234 break;
235 if ((w = write(pfd[1], buf, r)) != r)
236 break;

--- 299 unchanged lines hidden ---
230 _exit(2);
231 }
232 close(pfd[0]);
233 for (;;) {
234 if ((r = fread(buf, 1, sizeof buf, ftp)) < 1)
235 break;
236 if ((w = write(pfd[1], buf, r)) != r)
237 break;

--- 299 unchanged lines hidden ---