> will erroneously return #t when (file-system-mount-point fs) evaluates > to "/gn" and (%store-directory) to "/gnu/store". Will it not???
The trick is to revert the arguments: (string-prefix? (%store-directory) (file-system-mount-point fs))
> will erroneously return #t when (file-system-mount-point fs) evaluates > to "/gn" and (%store-directory) to "/gnu/store". Will it not???
The trick is to revert the arguments: (string-prefix? (%store-directory) (file-system-mount-point fs))