Partially sync files.el from XEmacs 21.5 for wildcard support.
[sxemacs] / src / callproc.c
index ed02330..c652f17 100644 (file)
@@ -47,7 +47,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 #include "sysproc.h"
 #include "sysfile.h"           /* Always include after sysproc.h */
 #include "syssignal.h"         /* Always include before systty.h */
-#include "ui/systty.h"
+#include "ui/TTY/systty.h"
 
 
 
@@ -509,7 +509,7 @@ static int relocate_fd(int fd, int minfd)
                           minfd);
                _exit(1);
        }
-       if (fd >= min)
+       if (fd >= minfd)
                return fd;
        
        newfd = dup(fd);
@@ -519,10 +519,10 @@ static int relocate_fd(int fd, int minfd)
                           strerror(errno));
                _exit(1);
        }
-       if (newfd >= min )
+       if (newfd >= minfd )
                return newfd;
        else {
-               int recurse_fd = relocate_fd(newfd, min);
+               int recurse_fd = relocate_fd(newfd, minfd);
                /* Close all the previously recursivelly dup'ed
                   file descriptors 
                */