Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/utils/net_afs.c

    r429 r745  
    2020#include "includes.h"
    2121#include "utils/net.h"
     22#include "secrets.h"
     23#include "system/filesys.h"
    2224
    2325int net_afs_usage(struct net_context *c, int argc, const char **argv)
     
    3638
    3739        if (argc != 2) {
    38                 d_printf(_("Usage:")," net afs key <keyfile> cell\n");
     40                d_printf("%s net afs key <keyfile> cell\n", _("Usage:"));
    3941                return -1;
    4042        }
     
    5254        if (read(fd, &keyfile, sizeof(keyfile)) != sizeof(keyfile)) {
    5355                d_fprintf(stderr, _("Could not read keyfile\n"));
     56                close(fd);
    5457                return -1;
    5558        }
     59        close(fd);
    5660
    5761        if (!secrets_store_afs_keyfile(argv[1], &keyfile)) {
     
    6973
    7074        if (argc != 2) {
    71                 fprintf(stderr, _("Usage:")," net afs impersonate <user> <cell>\n");
     75                d_fprintf(stderr, "%s net afs impersonate <user> <cell>\n",
     76                          _("Usage:"));
    7277                exit(1);
    7378        }
Note: See TracChangeset for help on using the changeset viewer.