X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=dfd99254ca7ff7bb015e000f0fd4730460775499;hb=ba6df2a68fcad5040f3746419aaac2bc3283a33d;hp=3eb37a7b41b3cd2807dc07ad0538a8f45ccf8df3;hpb=c291def1cadf58c0aa10c18a53c2fc4d2dee1ad6;p=odhcp6c.git diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 3eb37a7..dfd9925 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -259,7 +259,7 @@ int main(_unused int argc, char* const argv[]) pidfile = pidbuf; } - int fd = open(pidfile, O_WRONLY | O_CREAT); + int fd = open(pidfile, O_WRONLY | O_CREAT, 0644); if (fd >= 0) { char buf[8]; int len = snprintf(buf, sizeof(buf), "%i\n", getpid()); @@ -434,7 +434,7 @@ static int usage(void) " -N Mode for requesting addresses [try|force|none]\n" " -P Request IPv6-Prefix (0 = auto)\n" " -F Force IPv6-Prefix\n" - " -V Set vendor-class option. string length must be a multiple of 2\n" + " -V Set vendor-class option (base-16 encoded)\n" #ifdef EXT_BFD_PING " -B Enable BFD ping check\n" #endif @@ -446,7 +446,7 @@ static int usage(void) " -a Don't send Accept Reconfigure option\n" " -f Don't send Client FQDN option\n" " -k Don't send a RELEASE when stopping\n" - " -t Maximum timeout for DHCPv6-SOLICIT (120)\n" + " -t Maximum timeout for DHCPv6-SOLICIT (3600)\n" "\nInvocation options:\n" " -p Set pidfile (/var/run/odhcp6c.pid)\n" " -d Daemonize\n"