Deleted Added
full compact
package.c (89775) package.c (93595)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $FreeBSD: head/usr.sbin/sysinstall/package.c 89775 2002-01-25 05:10:00Z steve $
7 * $FreeBSD: head/usr.sbin/sysinstall/package.c 93595 2002-04-01 21:35:24Z obrien $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

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

133 if (!file_readable("/var/run/ld.so.hints"))
134 vsystem("ldconfig -aout /usr/lib/aout /usr/lib/compat/aout /usr/local/lib/aout /usr/X11R6/lib/aout");
135
136 /* Be initially optimistic */
137 ret = DITEM_SUCCESS;
138 /* Make a couple of paranoid locations for temp files to live if user specified none */
139 if (!variable_get(VAR_PKG_TMPDIR)) {
140 /* Set it to a location with as much space as possible */
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

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

133 if (!file_readable("/var/run/ld.so.hints"))
134 vsystem("ldconfig -aout /usr/lib/aout /usr/lib/compat/aout /usr/local/lib/aout /usr/X11R6/lib/aout");
135
136 /* Be initially optimistic */
137 ret = DITEM_SUCCESS;
138 /* Make a couple of paranoid locations for temp files to live if user specified none */
139 if (!variable_get(VAR_PKG_TMPDIR)) {
140 /* Set it to a location with as much space as possible */
141 variable_set2(VAR_PKG_TMPDIR, "/usr/tmp", 0);
141 variable_set2(VAR_PKG_TMPDIR, "/var/tmp", 0);
142 }
143 Mkdir(variable_get(VAR_PKG_TMPDIR));
144 vsystem("chmod 1777 %s", variable_get(VAR_PKG_TMPDIR));
145
146 if (!index(name, '/')) {
147 if (!strpbrk(name, "-_"))
148 sprintf(path, "packages/Latest/%s.tgz", name);
149 else

--- 114 unchanged lines hidden ---
142 }
143 Mkdir(variable_get(VAR_PKG_TMPDIR));
144 vsystem("chmod 1777 %s", variable_get(VAR_PKG_TMPDIR));
145
146 if (!index(name, '/')) {
147 if (!strpbrk(name, "-_"))
148 sprintf(path, "packages/Latest/%s.tgz", name);
149 else

--- 114 unchanged lines hidden ---