Ticket #2593: addattr_progname.diff

File addattr_progname.diff, 523 bytes (added by andreasf, 14 years ago)

proposed patch for addattr

  • src/bin/addattr/main.cpp

    diff --git a/src/bin/addattr/main.cpp b/src/bin/addattr/main.cpp
    index 2f439c1..a207917 100644
    a b static struct option const kLongOptions[] = {  
    2929};
    3030
    3131
     32#ifndef HAIKU_HOST_PLATFORM_SUNOS
    3233extern const char *__progname;
     34#endif
     35#ifdef HAIKU_HOST_PLATFORM_SUNOS
     36static const char *kProgramName = "addattr";
     37#else
    3338static const char *kProgramName = __progname;
     39#endif
    3440
    3541
    3642// supported types (if you add any, make sure that writeAttr() handles