~nhandler/ubuntu/lucid/am-utils/merge-from-squeeze

« back to all changes in this revision

Viewing changes to conf/checkmount/checkmount_osf.c

  • Committer: Bazaar Package Importer
  • Author(s): Tim Cutts
  • Date: 2006-11-27 20:37:54 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061127203754-i1b3qshs0pfk05pf
Tags: 6.1.5-3
* Moved amq-check-wrap check from config back to postinst (Closes: #400229).
* Fixed an error in the postrm script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 1997-2003 Erez Zadok
 
2
 * Copyright (c) 1997-2006 Erez Zadok
3
3
 * Copyright (c) 1990 Jan-Simon Pendry
4
4
 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5
5
 * Copyright (c) 1990 The Regents of the University of California.
36
36
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37
37
 * SUCH DAMAGE.
38
38
 *
39
 
 *      %W% (Berkeley) %G%
40
39
 *
41
 
 * $Id: checkmount_osf.c,v 1.3.2.3 2002/12/27 22:44:47 ezk Exp $
 
40
 * File: am-utils/conf/checkmount/checkmount_osf.c
42
41
 *
43
42
 */
44
43
 
70
69
     * Apparently two forms of nfs mount syntax are
71
70
     * accepted: host:/path or /path@host
72
71
     */
73
 
    if (delim = strchr(fslist[i].f_mntfromname, ':')) {
 
72
    if ((delim = strchr(fslist[i].f_mntfromname, ':'))) {
74
73
      *delim = '\0';
75
74
      if ((STREQ(delim + 1, path) ||
76
75
           STREQ(fslist[i].f_mntonname, path)) &&
77
76
          is_same_host(fslist[i].f_mntfromname,
78
77
                       host, hostaddr))
79
78
          found = 1;
80
 
    } else if (delim = strchr(fslist[i].f_mntfromname, '@')) {
 
79
    } else if ((delim = strchr(fslist[i].f_mntfromname, '@'))) {
81
80
      *delim = '\0';
82
81
      if ((STREQ(fslist[i].f_mntfromname, path) ||
83
82
           STREQ(fslist[i].f_mntonname, path)) &&