Skip to content
Snippets Groups Projects
Commit 45c1b357 authored by Andrea Ieri's avatar Andrea Ieri
Browse files

Fix for bug #91080: nsmkdir truncates mode if it's somewhat valid but too long

ns/Cns_procreq.c:

Added checks on unmarshalled mode to make sure it isn't an invalid number (no more blind trust on client).

ns/Cns_mkdir.c and ns/Cns_chmod.c:

Removal of silent truncating of specified mode via bitmask and substitution with explicit checking. The library aborts if an invalid mode is found instead of "fixing" the input.

ns/nsmkdir.c:

Added explicit validation of submitted mode. It wouldn't be strictly needed as the server wouldn't allow invalid modes anyway now, but it allows for the printing of a specific error message and avoids useless communications with the nameserver.
parent 68c29d70
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment