FreeBSD Bugzilla – Attachment 121136 Details for
Bug 164049
[patch] getconf(1) returns bad value for ULLONG_MAX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 741 bytes, created by
Marcus Reid
on 2012-01-12 08:50:10 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Marcus Reid
Created:
2012-01-12 08:50:10 UTC
Size:
741 bytes
patch
obsolete
>--- usr.bin/getconf/getconf.c.orig 2011-09-27 01:42:06.444544408 -0700 >+++ usr.bin/getconf/getconf.c 2012-01-12 00:15:50.000000000 -0800 >@@ -98,7 +98,10 @@ > if (argv[optind + 1] == NULL) { /* confstr or sysconf */ > if ((valid = find_limit(name, &limitval)) != 0) { > if (valid > 0) >- printf("%" PRIdMAX "\n", limitval); >+ if((long long)limitval == -1) >+ printf("%llu\n", limitval); >+ else >+ printf("%lld\n", limitval); > else > printf("undefined\n"); > >--- usr.bin/getconf/getconf.h.orig 2011-09-27 01:42:06.444544408 -0700 >+++ usr.bin/getconf/getconf.h 2012-01-12 00:15:51.000000000 -0800 >@@ -31,7 +31,6 @@ > > #ifdef STABLE > typedef long long intmax_t; >-#define PRIdMAX "lld" > #else > #include <inttypes.h> > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 164049
: 121136 |
121137