]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - login/utmp_file.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / login / utmp_file.c
index fb5840242e21f3eb86f27fbb2e7eccfa599be7dc..a6060344b2badf23d5d364f8c0a393c5ac342e8c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2004, 2007, 2008 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2015 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>
    and Paul Janzen <pcj@primenet.com>, 1996.
@@ -14,9 +14,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include <assert.h>
 #include <errno.h>
@@ -45,7 +44,7 @@ static struct utmp last_entry;
 
 /* Locking timeout.  */
 #ifndef TIMEOUT
-# define TIMEOUT 1
+# define TIMEOUT 10
 #endif
 
 /* Do-nothing handler for locking timeout.  */
@@ -437,7 +436,7 @@ pututline_file (const struct utmp *data)
 #endif
 
       if (__lseek64 (new_fd, __lseek64 (file_fd, 0, SEEK_CUR), SEEK_SET) == -1
-         || dup2 (new_fd, file_fd) < 0)
+         || __dup2 (new_fd, file_fd) < 0)
        {
          close_not_cancel_no_status (new_fd);
          return NULL;