svn commit: [25987] trunk/busybox/shell
vapier at busybox.net
vapier at busybox.net
Mon Apr 6 12:35:41 UTC 2009
Author: vapier
Date: 2009-04-06 12:35:41 +0000 (Mon, 06 Apr 2009)
New Revision: 25987
Log:
fix #>&- syntax for closing fds
Modified:
trunk/busybox/shell/hush.c
Changeset:
Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c 2009-04-06 12:34:27 UTC (rev 25986)
+++ trunk/busybox/shell/hush.c 2009-04-06 12:35:41 UTC (rev 25987)
@@ -2064,7 +2064,8 @@
squirrel[redir->fd] = dup(redir->fd);
}
if (openfd == -3) {
- //close(openfd); // close(-3) ??!
+ /* "-" means "close me" and we use -3 for that */
+ close(redir->fd);
} else {
dup2(openfd, redir->fd);
if (redir->dup == -1)
More information about the busybox-cvs
mailing list