~wb-munzinger/+junk/ocfs2-tools

« back to all changes in this revision

Viewing changes to libocfs2/ismounted.c

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2009-07-06 07:26:30 UTC
  • mfrom: (1.1.7 upstream) (0.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090706072630-59335sl51k3rvu74
Tags: 1.4.2-1
* New upstream release (Closes: #535471).
* Drop patch for limits.h, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include <string.h>
39
39
#include <sys/stat.h>
40
40
 
41
 
#include "ocfs2.h"
 
41
#include "ocfs2/ocfs2.h"
42
42
 
43
43
#ifdef HAVE_MNTENT_H
44
44
/*
153
153
is_root:
154
154
#define TEST_FILE "/.ismount-test-file"         
155
155
                *mount_flags |= OCFS2_MF_ISROOT;
156
 
                fd = open(TEST_FILE, O_RDWR|O_CREAT,S_IRUSR|S_IWUSR);
 
156
                fd = open(TEST_FILE, O_RDWR|O_CREAT, 0600);
157
157
                if (fd < 0) {
158
158
                        if (errno == EROFS)
159
159
                                *mount_flags |= OCFS2_MF_READONLY;