]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - io/link.c
xfsprogs: convert to SPDX license tags
[thirdparty/xfsprogs-dev.git] / io / link.c
index 092e0d47f3e777f12f81b93894c6bf1f3b8d15a7..f4f4b1396951f3b66e426d60bb44dc3b1f5e68ae 100644 (file)
--- a/io/link.c
+++ b/io/link.c
@@ -1,24 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2014 Christoph Hellwig.
  * All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write the Free Software Foundation,
- * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "xfs/xfs.h"
-#include "xfs/command.h"
-#include "xfs/input.h"
+#include "command.h"
+#include "input.h"
 #include "init.h"
 #include "io.h"
 
@@ -60,7 +47,7 @@ flink_init(void)
        flink_cmd.cfunc = flink_f;
        flink_cmd.argmin = 1;
        flink_cmd.argmax = 1;
-       flink_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
+       flink_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK | CMD_FLAG_ONESHOT;
        flink_cmd.args = _("filename");
        flink_cmd.oneline =
                _("link the open file descriptor to the supplied filename");