X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Frmt.c;h=e4e8f44bc23e1eb8e99ecbe3420ebdd178220d6d;hb=257a4160e4490f7299f1f0f02b6c7c024d52c970;hp=0215bffb8a577855380ecb7068866bd9eaf80780;hpb=02519e55752f86d85a03643332a0bdd0850c265c;p=chaz%2Ftar diff --git a/src/rmt.c b/src/rmt.c index 0215bff..e4e8f44 100644 --- a/src/rmt.c +++ b/src/rmt.c @@ -204,7 +204,9 @@ decode_oflag (char const *oflag_string) struct name_value_pair { char const *name; int value; }; static struct name_value_pair const table[] = { +#ifdef O_APPEND {"APPEND", O_APPEND}, +#endif {"CREAT", O_CREAT}, #ifdef O_DSYNC {"DSYNC", O_DSYNC}, @@ -335,7 +337,7 @@ see the file named COPYING for details.")); } top: - errno = 0; /* FIXME: errno should be read-only */ + errno = 0; status = 0; if (safe_read (STDIN_FILENO, &command, 1) != 1) return EXIT_SUCCESS;