Bug 18634 - basename dumps core on mv'ing directory
basename dumps core on mv'ing directory
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: sh-utils (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: bero
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-10-08 08:39 EDT by Graham Higgins
Modified: 2007-04-18 12:29 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-10-08 16:40:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Graham Higgins 2000-10-08 08:39:24 EDT
Probably a GNU thing. Yeah, okay, it's a sloppy command but the trailing
slash was added by TAB (complete) and I'm fairly sure that basename
shouldn't dump core whatever.

# ls daemontools/
./	     envuidgid.html  multilog.html   softlimit.html  svok.html	 
tai64nlocal.html
../	     fghack.html     setlock.html    supervise.html  svscan.html 
tai64nunix-0.70.patch
envdir.html  install.html    setuidgid.html  svc.html	     tai64n.html 
upgrade.html
# ls /usr/share/doc/daemontools-0.53/
./  ../  BLURB	CHANGES  INSTALL  README  README.rpm  THANKS  TODO  VERSION
# mv daemontools/ /usr/share/doc/daemontools-0.53/html
mv: basename.c:67: base_name: Assertion `all_slashes || *(p - 1) != '/''
failed.
Aborted (core dumped)
Comment 1 Jeff Johnson 2001-01-06 14:05:26 EST
Dunno, what sh-utils package you are using, as the assertion that you are seeing
is not in any sh-utils-2.0-11 sources.

Note You need to log in before you can comment on or make changes to this bug.