Deleted Added
full compact
perform.c (8142) perform.c (8423)
1#ifndef lint
1#ifndef lint
2static const char *rcsid = "$Id: perform.c,v 1.13 1995/04/26 15:08:02 jkh Exp $";
2static const char *rcsid = "$Id: perform.c,v 1.14 1995/04/28 18:24:31 jkh Exp $";
3#endif
4
5/*
6 * FreeBSD install - a package for the installation and maintainance
7 * of non-core utilities.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions

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

89 if ((cp = fileGetURL(pkg)) != NULL) {
90 strcpy(fname, cp);
91 isTMP = TRUE;
92 }
93 }
94 else if (fexists(pkg)) {
95 int len;
96
3#endif
4
5/*
6 * FreeBSD install - a package for the installation and maintainance
7 * of non-core utilities.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions

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

89 if ((cp = fileGetURL(pkg)) != NULL) {
90 strcpy(fname, cp);
91 isTMP = TRUE;
92 }
93 }
94 else if (fexists(pkg)) {
95 int len;
96
97 if (!getcwd(fname, FILENAME_MAX))
98 upchuck("getcwd");
99 len = strlen(fname);
100 snprintf(&fname[len], FILENAME_MAX - len, "/%s", pkg);
97 if (*pkg != '/') {
98 if (!getcwd(fname, FILENAME_MAX))
99 upchuck("getcwd");
100 len = strlen(fname);
101 snprintf(&fname[len], FILENAME_MAX - len, "/%s", pkg);
102 }
103 else
104 strcpy(fname, pkg);
101 cp = fname;
102 }
103 else {
104 if ((cp = fileFindByPath(pkg)) != NULL)
105 strncpy(fname, cp, FILENAME_MAX);
106 }
107 if (cp) {
108 /*

--- 96 unchanged lines hidden ---
105 cp = fname;
106 }
107 else {
108 if ((cp = fileFindByPath(pkg)) != NULL)
109 strncpy(fname, cp, FILENAME_MAX);
110 }
111 if (cp) {
112 /*

--- 96 unchanged lines hidden ---