]> andersk Git - gssapi-openssh.git/blobdiff - openssh/sftp.c
Import of OpenSSH 4.5p1
[gssapi-openssh.git] / openssh / sftp.c
index c018615ae61b13f27d9884e0755f317e52d37250..a39c782f70e28af2c508329246ffd474aac9ee40 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.92 2006/09/19 05:52:23 otto Exp $ */
+/* $OpenBSD: sftp.c,v 1.93 2006/09/30 17:48:22 ray Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
  *
@@ -977,6 +977,7 @@ parse_args(const char **cpp, int *pflag, int *lflag, int *iflag,
        case I_CHOWN:
        case I_CHGRP:
                /* Get numeric arg (mandatory) */
+               errno = 0;
                l = strtol(cp, &cp2, base);
                if (cp2 == cp || ((l == LONG_MIN || l == LONG_MAX) &&
                    errno == ERANGE) || l < 0) {
This page took 0.02454 seconds and 4 git commands to generate.