~ubuntu-branches/ubuntu/lucid/nfs-utils/lucid

« back to all changes in this revision

Viewing changes to utils/lockd/lockd.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-03 10:36:59 UTC
  • mto: (12.1.1 feisty)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060703103659-71qzs6f21zzmjmhx
Tags: upstream-1.0.8
ImportĀ upstreamĀ versionĀ 1.0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 *
7
7
 */
8
8
 
9
 
#include "config.h"
 
9
#ifdef HAVE_CONFIG_H
 
10
#include <config.h>
 
11
#endif
10
12
 
11
13
#include <stdio.h>
12
14
#include <unistd.h>
13
15
#include <string.h>
14
16
#include <errno.h>
15
 
#include "nfslib.h"
 
17
#include <nfslib.h>
 
18
 
 
19
 
16
20
 
17
21
static void     usage(const char *);
18
22
 
23
27
 
24
28
        if (argc > 1)
25
29
                usage (argv [0]);
26
 
 
 
30
        
27
31
        if (chdir(NFS_STATEDIR)) {
28
32
                fprintf(stderr, "%s: chdir(%s) failed: %s\n",
29
33
                        argv [0], NFS_STATEDIR, strerror(errno));