aboutsummaryrefslogtreecommitdiff
path: root/src/makepath.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-11-03 16:44:32 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-11-03 16:44:32 +0200
commit38290e9dde947f2d46e06e594d7d81644f423cd7 (patch)
treee5cd091c02e55f7126bbc7d4cf4be31f8b35d616 /src/makepath.c
parent068f5dbd006c02f9e70558a2b19e61becb5ed652 (diff)
downloadcpio-38290e9dde947f2d46e06e594d7d81644f423cd7.tar.gz
cpio-38290e9dde947f2d46e06e594d7d81644f423cd7.tar.bz2
Remove HPUX CDF support
Diffstat (limited to 'src/makepath.c')
-rw-r--r--src/makepath.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/makepath.c b/src/makepath.c
index b5f99c6..0e2184c 100644
--- a/src/makepath.c
+++ b/src/makepath.c
@@ -74,24 +74,9 @@ make_path (char *argpath,
slash++;
while ((slash = strchr (slash, '/')))
{
-#ifdef HPUX_CDF
- int iscdf;
- iscdf = 0;
-#endif
*slash = '\0';
if (stat (dirpath, &stats))
{
-#ifdef HPUX_CDF
- /* If this component of the pathname ends in `+' and is
- followed by 2 `/'s, then this is a CDF. We remove the
- `+' from the name and create the directory. Later
- we will "hide" the directory. */
- if ( (*(slash +1) == '/') && (*(slash -1) == '+') )
- {
- iscdf = 1;
- *(slash -1) = '\0';
- }
-#endif
if (mkdir (dirpath, tmpmode ^ invert_permissions))
{
error (0, errno, _("cannot make directory `%s'"), dirpath);
@@ -113,18 +98,6 @@ make_path (char *argpath,
delay_set_stat (dirpath, &stats, invert_permissions);
}
-
-#ifdef HPUX_CDF
- if (iscdf)
- {
- /* If this is a CDF, "hide" the directory by setting
- its hidden/setuid bit. Also add the `+' back to
- its name (since once it's "hidden" we must refer
- to as `name+' instead of `name'). */
- chmod (dirpath, 04700);
- *(slash - 1) = '+';
- }
-#endif
}
}
else if (!S_ISDIR (stats.st_mode))

Return to:

Send suggestions and report system problems to the System administrator.