BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000812 [BusyBox] Other minor always 04-02-06 23:48 02-14-08 11:58
Reporter agriesser View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0000812: ash: Tab completion doesn't work for broken symlinks
Description I found out, that tab completion in cmdedit.c doesn't work
for broken symbolic links.

Symptoms:
---------
[lxtc3861 - ~ #] ls -l | grep -- "->"
lrwxrwxrwx [...] Mar 23 11:16 root -> /
lrwxrwxrwx [...] Mar 29 09:57 symlink -> i_do_not_exist
lrwxrwxrwx [...] Mar 29 10:01 symlink_working -> linuxrc
lrwxrwxrwx [...] Mar 23 11:16 tmp -> var/tmp
[lxtc3861 - ~ #] ls sy
symlink_working sys/ system/
[lxtc3861 - ~ #] ls sy

Explanation:
------------
The symbolic link "symlink" points to "i_do_not_exist" and this file
does (surprise, surprise) not exist. Although the symlink is there and
occupies an inode and is a "real" file, it doesn't get listed as part
of the possible matches.

Additional Information Resolution:
-----------
Took me some time to find out why, but in fact, it was quite harmless.
I think, this patch shouldn't do anything bad, if I understood the
manpages correctly.

The attached patch fixes this for me.
Attached Files  cmdedit-broken_symlink-issue.diff [^] (349 bytes) 04-02-06 23:48

- Relationships

- Notes
(0001206)
vodz
04-03-06 02:14

If interestingly my opinion I approve this correction.
The new version cmdedit on mine ftp already contains this correction.
 
(0004784)
vda
02-14-08 11:58

Applied to svn (rev 21021). Thanks!
 

- Issue History
Date Modified Username Field Change
04-02-06 23:48 agriesser New Issue
04-02-06 23:48 agriesser Status new => assigned
04-02-06 23:48 agriesser Assigned To  => BusyBox
04-02-06 23:48 agriesser File Added: cmdedit-broken_symlink-issue.diff
04-03-06 02:14 vodz Note Added: 0001206
02-14-08 11:58 vda Status assigned => closed
02-14-08 11:58 vda Note Added: 0004784
02-14-08 11:58 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker