~ubuntu-branches/ubuntu/precise/nordugrid-arc/precise

« back to all changes in this revision

Viewing changes to src/services/a-rex/grid-manager/misc/proxy.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2011-10-24 02:19:37 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111024021937-8whiie90uq2oqsok
Tags: 1.1.0-2
* Backport fixes for endian independent md5 checksum
* Filter out -Wl,-Bsymbolic-functions from default Ubuntu LDFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    l+=ll;
119
119
  };
120
120
  if(stat(old_proxy,&st) == 0) {
121
 
    fchown(h,st.st_uid,st.st_gid);
 
121
    if (fchown(h,st.st_uid,st.st_gid) !=0) {
 
122
      fprintf(stderr,"Can't change owner/group (%d,%d) of proxy: %s\n",st.st_uid,st.st_gid,old_proxy);
 
123
      //goto exit;
 
124
    };
122
125
    if(remove(old_proxy) != 0) {
123
126
      fprintf(stderr,"Can't remove proxy: %s\n",old_proxy);
124
127
      goto exit;