diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-24 16:42:26 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-24 16:42:26 +0000 |
commit | 4afb978236cdcc068a312cc5d03d006f8993fa2b (patch) | |
tree | 0437da69d423a5109fac746b81c23490d0e190dc /src/copyout.c | |
parent | 7c40579bedad257e13020bc91ae49c3dcb4777c9 (diff) | |
download | cpio-4afb978236cdcc068a312cc5d03d006f8993fa2b.tar.gz cpio-4afb978236cdcc068a312cc5d03d006f8993fa2b.tar.bz2 |
(process_copy_out): Honor no_abs_paths_flag.
Diffstat (limited to 'src/copyout.c')
-rw-r--r-- | src/copyout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/copyout.c b/src/copyout.c index 51fe36b..490d7ff 100644 --- a/src/copyout.c +++ b/src/copyout.c @@ -514,8 +514,10 @@ process_copy_out () } } - /* Strip leading `./' from the filename. */ - p = input_name.ds_string; + p = safer_name_suffix (input_name.ds_string, false, + !no_abs_paths_flag); + /* No matter what no_abs_paths_flag setting is, strip + leading `./' from the filename. */ while (*p == '.' && *(p + 1) == '/') { ++p; |