The pathchk command will check that one or more path names are valid (that is, they could be used to access or create a file without causing syntax errors) and portable (that is,
no filename truncation will result). More extensive portability checks are provided by the -p option.
By default, pathchk will check each component of each path operand based on the underlying file system. A diagnostic will be written for each path operand that:
- is longer than PATH_MAX bytes.
- contains any component longer than NAME_MAX bytes in its containing directory
- contains any component in a directory that is not searchable
- contains any character in any component that is not valid in its containing directory.
The format of the diagnostic message is not specified, but will indicate the error detected and the corresponding path operand.
It will not be considered an error if one or more components of a path operand do not exist as long as a file matching the path name specified by the missing components
could be created that does not violate any of the checks specified above.
|