From 957b169eedd0fed1a6a5c280769546ff301a1b29 Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 25 Apr 1994 18:47:17 +0000 Subject: [PATCH] lseek long lossage. --- bin/sh/redir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/sh/redir.c b/bin/sh/redir.c index 8ee99c09890d..e85a52be0c7b 100644 --- a/bin/sh/redir.c +++ b/bin/sh/redir.c @@ -36,13 +36,14 @@ #ifndef lint /*static char sccsid[] = "from: @(#)redir.c 5.1 (Berkeley) 3/7/91";*/ -static char rcsid[] = "$Id: redir.c,v 1.5 1993/08/01 18:58:01 mycroft Exp $"; +static char rcsid[] = "$Id: redir.c,v 1.6 1994/04/25 18:47:17 cgd Exp $"; #endif /* not lint */ /* * Code for dealing with input/output redirection. */ +#include #include "shell.h" #include "nodes.h" #include "jobs.h" @@ -184,7 +185,7 @@ movefd: if ((f = open(fname, O_WRONLY)) < 0 && (f = creat(fname, 0666)) < 0) error("cannot create %s: %s", fname, errmsg(errno, E_CREAT)); - lseek(f, 0L, 2); + lseek(f, 0, 2); #endif goto movefd; case NTOFD: