bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] utime.c


From: Bruno Haible
Subject: [Bug-gnulib] utime.c
Date: Tue, 17 Dec 2002 12:54:49 +0100 (CET)

Hi,

I did this change, to accomodate the change of return type of
safe_read().

        * utime.c (utime_null): Use SAFE_READ_ERROR.

*** utime.c     31 Aug 2001 07:35:47 -0000      1.6
--- utime.c     17 Dec 2002 11:47:53 -0000
***************
*** 1,4 ****
! /* Copyright (C) 1998, 2001 Free Software Foundation, Inc.
  
     This program is free software; you can redistribute it and/or modify it
     under the terms of the GNU General Public License as published by the
--- 1,4 ----
! /* Copyright (C) 1998, 2001-2002 Free Software Foundation, Inc.
  
     This program is free software; you can redistribute it and/or modify it
     under the terms of the GNU General Public License as published by the
***************
*** 58,64 ****
    fd = open (file, O_RDWR);
    if (fd < 0
        || fstat (fd, &sb) < 0
!       || safe_read (fd, &c, sizeof c) < 0
        || lseek (fd, (off_t) 0, SEEK_SET) < 0
        || full_write (fd, &c, sizeof c) != sizeof c
        /* Maybe do this -- it's necessary on SunOS4.1.3 with some combination
--- 58,64 ----
    fd = open (file, O_RDWR);
    if (fd < 0
        || fstat (fd, &sb) < 0
!       || safe_read (fd, &c, sizeof c) == SAFE_READ_ERROR
        || lseek (fd, (off_t) 0, SEEK_SET) < 0
        || full_write (fd, &c, sizeof c) != sizeof c
        /* Maybe do this -- it's necessary on SunOS4.1.3 with some combination



reply via email to

[Prev in Thread] Current Thread [Next in Thread]