From ea62077b850076c4d7dc3cf78ebd1888928c6ddf Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 14 Oct 2006 02:23:43 +0000 Subject: add open_read_close() and similar stuff --- miscutils/crontab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils/crontab.c') diff --git a/miscutils/crontab.c b/miscutils/crontab.c index a3bfd495d..6ae1b020c 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c @@ -171,7 +171,7 @@ int crontab_main(int ac, char **av) } EditFile(caller, tmp); remove(tmp); - lseek(fd, 0L, 0); + lseek(fd, 0L, SEEK_SET); repFd = fd; } option = REPLACE; -- cgit v1.2.3