opncls.c (60484) | opncls.c (61843) |
---|---|
1/* opncls.c -- open and close a BFD. 2 Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 3 Free Software Foundation, Inc. 4 5 Written by Cygnus Support. 6 7This file is part of BFD, the Binary File Descriptor library. 8 --- 472 unchanged lines hidden (view full) --- 481 { 482 struct stat buf; 483 484 if (stat (abfd->filename, &buf) == 0) 485 { 486 int mask = umask (0); 487 umask (mask); 488 chmod (abfd->filename, | 1/* opncls.c -- open and close a BFD. 2 Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 3 Free Software Foundation, Inc. 4 5 Written by Cygnus Support. 6 7This file is part of BFD, the Binary File Descriptor library. 8 --- 472 unchanged lines hidden (view full) --- 481 { 482 struct stat buf; 483 484 if (stat (abfd->filename, &buf) == 0) 485 { 486 int mask = umask (0); 487 umask (mask); 488 chmod (abfd->filename, |
489 (0x777 | 489 (0777 |
490 & (buf.st_mode | ((S_IXUSR | S_IXGRP | S_IXOTH) &~ mask)))); 491 } 492 } 493 494 objalloc_free ((struct objalloc *) abfd->memory); 495 free (abfd); 496 497 return ret; --- 186 unchanged lines hidden --- | 490 & (buf.st_mode | ((S_IXUSR | S_IXGRP | S_IXOTH) &~ mask)))); 491 } 492 } 493 494 objalloc_free ((struct objalloc *) abfd->memory); 495 free (abfd); 496 497 return ret; --- 186 unchanged lines hidden --- |