Correct the arguments to the extattrct()l call so that the enable and

disable commands work as documented.

Approved by:	rwatson
This commit is contained in:
Thomas Moestl 2001-03-17 15:59:59 +00:00
parent 69b58b037c
commit fccc713c06
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74394

View File

@ -192,8 +192,8 @@ main(int argc, char *argv[])
perror("extattrctl enable");
return (-1);
}
error = extattrctl(argv[2], UFS_EXTATTR_CMD_ENABLE, argv[4],
namespace, argv[5]);
error = extattrctl(argv[2], UFS_EXTATTR_CMD_ENABLE, argv[5],
namespace, argv[4]);
if (error) {
perror("extattrctl enable");
return (-1);
@ -208,7 +208,7 @@ main(int argc, char *argv[])
return (-1);
}
error = extattrctl(argv[2], UFS_EXTATTR_CMD_DISABLE, NULL,
namespace, argv[5]);
namespace, argv[4]);
if (error) {
perror("extattrctl disable");
return (-1);