X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fexits.c;h=b8230f8f43b677d1193b26f16d743569ff1f0193;hp=273a67789c4aeac1e02a33daf025475b3cde3be9;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=293008f682e5fa9726136bc121bceadc136c77dc diff --git a/src/exits.c b/src/exits.c index 273a6778..b8230f8f 100644 --- a/src/exits.c +++ b/src/exits.c @@ -1,6 +1,5 @@ -/* Command line parsing. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +/* Exit status handling. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -59,6 +58,7 @@ get_status_for_err (uerr_t err) case RETROK: return WGET_EXIT_SUCCESS; case FOPENERR: case FOPEN_EXCL_ERR: case FWRITEERR: case WRITEFAILED: + case UNLINKERR: case CLOSEFAILED: case FILEBADFILE: return WGET_EXIT_IO_FAIL; case NOCONERROR: case HOSTERR: case CONSOCKERR: case CONERROR: case CONSSLERR: case CONIMPOSSIBLE: case FTPRERR: case FTPINVPASV: @@ -68,7 +68,7 @@ get_status_for_err (uerr_t err) return WGET_EXIT_SSL_AUTH_FAIL; case FTPLOGINC: case FTPLOGREFUSED: case AUTHFAILED: return WGET_EXIT_SERVER_AUTH_FAIL; - case HEOF: case HERR: + case HEOF: case HERR: case ATTRMISSING: return WGET_EXIT_PROTOCOL_ERROR; case WRONGCODE: case FTPPORTERR: case FTPSYSERR: case FTPNSFOD: case FTPUNKNOWNTYPE: case FTPSRVERR: @@ -76,7 +76,7 @@ get_status_for_err (uerr_t err) case CONTNOTSUPPORTED: case RANGEERR: case RETRBADPATTERN: case PROXERR: return WGET_EXIT_SERVER_ERROR; - case URLERROR: case QUOTEXC: case SSLINITFAILED: + case URLERROR: case QUOTEXC: case SSLINITFAILED: case UNKNOWNATTR: default: return WGET_EXIT_UNKNOWN; }