X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fxheader.c;h=84ae08bbc6e23d66a91f1273744c9435e4c7f970;hb=b216fed6340d073d33351145be033ecc5b903c7a;hp=9b291a21e62a93251cd292415d666d942e10f857;hpb=64cddf2fbc246e331edcbc82e419785af7f819a5;p=chaz%2Ftar diff --git a/src/xheader.c b/src/xheader.c index 9b291a2..84ae08b 100644 --- a/src/xheader.c +++ b/src/xheader.c @@ -1,10 +1,10 @@ /* POSIX extended headers for tar. - Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 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 - Free Software Foundation; either version 2, or (at your option) any later + Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but @@ -25,8 +25,6 @@ #include "common.h" -#include - static bool xheader_protected_pattern_p (char const *pattern); static bool xheader_protected_keyword_p (char const *keyword); static void xheader_set_single_keyword (char *) __attribute__ ((noreturn)); @@ -170,12 +168,12 @@ xheader_set_keyword_equal (char *kw, char *eq) global = false; } - while (p > kw && isspace (*p)) + while (p > kw && isspace ((unsigned char) *p)) p--; *p = 0; - for (p = eq + 1; *p && isspace (*p); p++) + for (p = eq + 1; *p && isspace ((unsigned char) *p); p++) ; if (strcmp (kw, "delete") == 0) @@ -573,8 +571,8 @@ decx (void *data, char const *keyword, char const *value, size_t size) if (t) t->decoder (st, keyword, value, size); else - ERROR((0, 0, _("Ignoring unknown extended header keyword `%s'"), - keyword)); + WARN((0, 0, _("Ignoring unknown extended header keyword `%s'"), + keyword)); } void