summaryrefslogtreecommitdiff
path: root/security/srm/patches/patch-test.sh
blob: d431e4472dcd73966f2559224f4313082d5487a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-test.sh,v 1.1 2016/10/27 19:49:44 kamil Exp $

Add NetBSD support

--- test.sh.orig	2015-02-26 16:12:02.000000000 +0000
+++ test.sh
@@ -187,7 +187,7 @@ OS=$(uname -s)
 if [ "$OS" = Linux ] ; then
     setfattr -n user.a1 -v "The value of extended attribute number 1" $FN
     setfattr -n user.num2 -v "A second attribute." $FN
-elif [ "$OS" = FreeBSD ] ; then
+elif [ "x$OS" = xFreeBSD -o "x$OS" = xNetBSD ] ; then
     setextattr user a1 "The value of extended attribute number 1" $FN
     setextattr user num2 "A second attribute." $FN
 elif [ "$OS" = Darwin ] ; then