diff options
author | Jim Meyering <jim@meyering.net> | 2006-03-26 12:07:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-03-26 12:07:59 +0000 |
commit | d4d9a40b8277d288d6f13317f975f0ee704f11a7 (patch) | |
tree | c50371e4c30f0a7a98ed514b6ed79797541dffd5 /src | |
parent | 0cabfe4b6dcc6d01d6133be1b03990aced32e2ad (diff) | |
download | coreutils-d4d9a40b8277d288d6f13317f975f0ee704f11a7.tar.xz |
(wipename): Use new last_component, in place of base_name.
Diffstat (limited to 'src')
-rw-r--r-- | src/shred.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shred.c b/src/shred.c index fdcc54d7d..a86edbb1f 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1,6 +1,6 @@ /* shred.c - overwrite files and devices to make it harder to recover data - Copyright (C) 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1999-2006 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999 Colin Plumb. This program is free software; you can redistribute it and/or modify @@ -1024,7 +1024,7 @@ static bool wipename (char *oldname, char const *qoldname, struct Options const *flags) { char *newname = xstrdup (oldname); - char *base = base_name (newname); + char *base = last_component (newname); size_t len = base_len (base); char *dir = dir_name (newname); char *qdir = xstrdup (quotearg_colon (dir)); |