@@ -1,6 +1,5 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -11,7 +10,7 @@
|
||||
#include "fstab-util.h"
|
||||
#include "initrd-util.h"
|
||||
#include "libmount-util.h"
|
||||
#include "macro.h"
|
||||
#include "log.h"
|
||||
#include "nulstr-util.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
@@ -393,6 +392,10 @@ char* fstab_node_to_udev_node(const char *p) {
|
||||
return strdup(p);
|
||||
}
|
||||
|
||||
const char* fstab_path(void) {
|
||||
return secure_getenv("SYSTEMD_FSTAB") ?: "/etc/fstab";
|
||||
}
|
||||
|
||||
bool fstab_is_bind(const char *options, const char *fstype) {
|
||||
|
||||
if (fstab_test_option(options, "bind\0" "rbind\0"))
|
||||
|
||||
Reference in New Issue
Block a user