Mounted with an absolute mount point on OpenIndiana

OpenIndiana requires that the mount points be defined on a full
absolute patch. Give it what it needs.
edge.strict_endians
Jean-Pierre André 2012-01-23 17:56:15 +01:00
parent 458c5eb191
commit 08ad3b4977
2 changed files with 8 additions and 0 deletions

View File

@ -3826,6 +3826,10 @@ int main(int argc, char *argv[])
PATH_MAX - strlen(opts.mnt_point) - 1)) {
strcat(ctx->abs_mnt_point, "/");
strcat(ctx->abs_mnt_point, opts.mnt_point);
#if defined(__sun) && defined (__SVR4)
/* Solaris also wants the absolute mount point */
opts.mnt_point = ctx->abs_mnt_point;
#endif /* defined(__sun) && defined (__SVR4) */
}
}
}

View File

@ -3681,6 +3681,10 @@ int main(int argc, char *argv[])
PATH_MAX - strlen(opts.mnt_point) - 1)) {
strcat(ctx->abs_mnt_point, "/");
strcat(ctx->abs_mnt_point, opts.mnt_point);
#if defined(__sun) && defined (__SVR4)
/* Solaris also wants the absolute mount point */
opts.mnt_point = ctx->abs_mnt_point;
#endif /* defined(__sun) && defined (__SVR4) */
}
}
}