SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,36 @@
--- hotplug-diskmount.c.orig Sun Nov 13 21:19:35 2016
+++ hotplug-diskmount.c Sun Nov 13 21:21:29 2016
@@ -406,13 +406,13 @@ check_ntfs3g(void)
{
struct stat sb;
- return (stat("/usr/local/bin/ntfs-3g", &sb) == 0);
+ return (stat("${LOCALBASE}/bin/ntfs-3g", &sb) == 0);
}
/*
* Return Values:
* 0 - OK
- * ECANCELED - /usr/local/bin/ntfs-3g exited with non-zero exit code
+ * ECANCELED - ${LOCALBASE}/bin/ntfs-3g exited with non-zero exit code
* other values - fork() returned with error
*/
int
@@ -431,7 +431,7 @@ do_ntfs3g(int idx, const char *dev, const char *mp, in
mounter_pid[idx] = fork();
if (mounter_pid[idx] == 0) {
setsid();
- execv("/usr/local/bin/ntfs-3g", argv);
+ execv("${LOCALBASE}/bin/ntfs-3g", argv);
exit(errno);
}
@@ -466,7 +466,7 @@ get_ntfs3g_label(const char *dev, char *diskname)
pid = fork();
if (pid == 0) {
dup2(fds[1], 1);
- execv("/usr/local/sbin/ntfslabel", argv);
+ execv("${LOCALBASE}/sbin/ntfslabel", argv);
exit(errno);
} else if (pid < 0) {
close(fds[0]);