2
* Copyright (C) 2002-2005 Novell/SUSE
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation, version 2 of the
13
#include <sys/types.h>
18
#include <linux/unistd.h>
20
#include "changehat.h"
22
int main(int argc, char *argv[])
27
fprintf(stderr, "usage: %s profile file\n",
32
/* change hat if hatname != nochange */
33
if (strcmp(argv[1], "nochange") != 0){
34
rc = change_hat(argv[1], SD_ID_MAGIC+1);
36
fprintf(stderr, "FAIL: changehat %s failed - %s\n",
37
argv[1], strerror(errno));
42
rc = do_open(argv[2]);