-
-
usr/src/lib/libsocket/inet/ruserpass.c (Diff revision 1) May be you could change the size of buffer to PATH_MAX while here? BUFSIZ doesn't really have anything to do with path limitations.
Change Summary:
use PATH_MAX.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+3 -5) |
-
-
usr/src/lib/libsocket/inet/ruserpass.c (Diff revision 2) I suspect we might want to check the return value and error if the result is truncated.
Change Summary:
validate the snprintf() result
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+14 -5) |
-
-
usr/src/lib/libsocket/inet/ruserpass.c (Diff revision 3) I think it's better:
"Path to the HOME directory is too long: %s\n"