Patch utility sets GID to 0 (wheel)

I don't know when this started happening, I only noticed it recently. When I apply a diff to a file using the /usr/bin/patch utility the file's group ID changes from my GID (501) to the wheel GID (0). That should of course not happen. touch, vi etc. don't do this.
Any idea what's going on here? Bug in patch? Attack vector as part of a root kit? Or simply a setting somewhere I'm not aware of?

So, where do I file a bug report?
You can file a bug report through [Bug Reporting|http://developer.apple.com/bugreporter/index.html]. This page require you to register for ADC (Apple Developer Connection, registration is free).
Another possibility is [Feedback|http://www.apple.com/feedback> page.
But the "bug" is fixed in Leopard. I guess the patch command is the same as in Tiger, but Leopard creates a separate temporary directory for each user, and set the name of the temporay directory in the environment variable TMPDIR.
If you specify an option "-x 4" to patch, then it will print where the temporary file is, for example
Tiger$ echo $TMPDIR
Tiger$ patch -x 4 < patchfile
patching file foo
Renaming file /tmp/po3Cyg9Q to foo
Leopard$ echo $TMPDIR
/var/folders/Dm/DmIw2BffEzyl-dedkHx5Mk+TI/-Tmp-/
Leopard$ ls -ld $TMPDIR
drwx------ 2 jun staff 68 1 30 02:55 /var/folders/Dm/DmIw2BffEzyl-dedkHx5Mk+TI/-Tmp-/
Leopard$ patch -x 4 < patchfile
patching file foo
Renaming file /var/folders/Dm/DmIw2BffEzyl-dedkHx5Mk+TI/-Tmp-//poCFy6tg to foo
In Leopard, each user does not have his/her own group but belongs to group "staff" (gid=20).

Similar Messages

  • Getting compilation error: java.util.Set is an interface. This interface is not supported.

    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

    Hello,
    Generic java collections can only be handled in a very generic, weakly
    typed manner.
    Take a look at the
    http://workshop.bea.com/xmlbeans/guide/conXMLBeansSupportBuiltInSchemaTypes.html
    and also
    http://workshop.bea.com/xmlbeans/guide/conJavaTypesGeneratedFromUserDerived.html
    You might also ask your question to the XMLBeans newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.xmlbeans
    Regards,
    Bruce
    Sanjay wrote:
    >
    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

  • Puzzled by the redefinition of the methods in java.util.Set

    Hi all,
    I don't understand why those methods in java.util.Set redefined since their counterparts have alrealdy been defined in java.util.Collection and java.util.Set extends java.util.Collection. I agree to redefine boolean add(Object o) because its contract has been modified, but what about the rest like
    size() and iterator() ?
    Thanks.

    Hi all,
    I don't understand why those methods in
    in java.util.Set redefined since their counterparts
    have alrealdy been defined in java.util.Collection
    and java.util.Set extends java.util.Collection. I
    agree to redefine boolean add(Object o) because its
    contract has been modified, but what about the rest
    like
    size() and iterator() ?Completeness's sake?
    ~Cheers

  • Failed to unmarshal interface java.util.Set

    I am trying to get all mbeans using getAllMBeans() method after
    getting MBeanHome successfully. The method fails with the following
    error.
    Any clues ?
    Thanks
    karthik
    >>>>
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception -
    with nested exception:
    [java.rmi.UnmarshalException: failed to unmarshal interface
    java.util.Set; nested exception is:
         java.io.InvalidClassException: javax.management.MBeanAttributeInfo;
    local class incompatible: stream classdesc serialVersionUID =
    7043855487133450673, local class serialVersionUID =
    8644704819898565848]
         at weblogic.management.internal.AdminMBeanHomeImpl_WLStub.getAllMBeans(Unknown
    Source)

    I am trying to get all mbeans using getAllMBeans() method after
    getting MBeanHome successfully. The method fails with the following
    error.
    Any clues ?
    Thanks
    karthik
    >>>>
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception -
    with nested exception:
    [java.rmi.UnmarshalException: failed to unmarshal interface
    java.util.Set; nested exception is:
         java.io.InvalidClassException: javax.management.MBeanAttributeInfo;
    local class incompatible: stream classdesc serialVersionUID =
    7043855487133450673, local class serialVersionUID =
    8644704819898565848]
         at weblogic.management.internal.AdminMBeanHomeImpl_WLStub.getAllMBeans(Unknown
    Source)

  • Can't install latest patch, "Patch Module for 32-Bit Version of Lenove Patch Utility" v 1.0.3

    Hi,
    I'm hoping someone can offer some help: I am unable to install the above patch on a T61 w/XP Pro/SP3. Error is simply, "1 Package did not install." Manual install gets same result. In the past when a patch did not instaqll I have had success by downloading and manually installing it, but I can't find the executable for this particular patch. Can anyone make a suggestion? Or point me to the executable?
    GaryK
    Solved!
    Go to Solution.

    This is how I was able to successfully install the Lenovo Patch Utility:
    1) Enable if necessary and log into the built-in Administrator account.
    2) Run System Update.  Download and install the Lenovo Patch Utility (unsure if this is a necessary step,)
    3) At this point, the Lenovo Patch Utility is not installed.  The previous version of the Lenovo Patch Utility will display in Programs and Features. 
    4) Run System Update under an administrator account.  Download and install the Lenovo Patch Utility (I ran this under a user-created Administrator account; unsure if works under built-in Administrator account..)  Lenovo Patch Utility will no longer appear in Programs and Features.  This indicates it has been succesfully installed.
    5) Disable built-in Administrator account if desired for security reasons.

  • TestNG with java.util.Set

    hi, i want to test simple method:
    @Parameters({"lista"})
    @Test
    public GroupedFiles groupFiles(Set<File> p_files){
    }and i have definition of my xml:
    <suite name="My suite">
      <parameter name="first-name"  value="Cedric"/>
      <test name="Simple example">
      <-- ... -->and my testNG throws me uknown for me exception:
    java.lang.AssertionError: Unsupported type parameter : interface java.util.Set
    could anyone help me with this case, thanks for any knowledge

    'little code modification'
    hi, i want to test simple method:
    @Parameters({"lista"})
    @Test
    public GroupedFiles groupFiles(Set<File> p_files){
    }and i have definition of my xml:
    <suite name="My suite">
      <parameter name="lista"  value="java.util.Set"/>
      <test name="Simple example">
      <-- ... -->and my testNG throws me uknown for me exception:
    java.lang.AssertionError: Unsupported type parameter : interface java.util.Set
    could anyone help me with this case, thanks for any knowledge

  • ADF Faces af:table support java.util.Set

    I was using a java.util.Set in my model classes, as implementation of the Collection interface. And wanted to show the Set using a <af:table> after a while I discoverded that the documentation did not mention support of java.util.Set, only List.
    Now I have to convert my collection to List in the backing beans of my view.
    Is there a better approch than converting every Set in the view using
    new Arraylist(set)?
    And what is the reason of the missing Set support (or General Colelction support)?
    Thank you

    Deepak, I don't think you know what you're writing about.
    No, we do not support java.util.Set in <af:table>. For that matter, neither does <h:dataTable>.
    The "why" of it is that we require indexed access into the table for operations like "Display rows 526-550". java.util.Set does not offer indexed access.
    By the way, one corollary - do not use java.util.LinkedList with tables (ADF Faces or the JSF data table). If the list is small, then it won't be a problem, but with a large list, you'll get brutal performance.

  • Where can get info on Recommended Patch Collection sets (RPC) for EBS R12

    Where we can get the information for all modules Recommended Patch Collection sets (RPC). Please provide me the link.
    Thanks in Advance.

    Hi,
    I think there is a note for each module.
    For example here is a note for Payables.
    EBS: R12.1 Oracle Financials Recommended Patch Collection (RPC) (Doc ID 954704.1)
    https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=954704.1
    Edited by: 958182 on Oct 2, 2012 1:44 PM

  • 118872-03 ksh patch breaks set construct wildcard

    Not sure where to report solaris 10 bug, anyone know? So I will post it here.... Solaris 10 sparc patch 118872-03 breaks set construct wildcard. For example:
    % ls [A-Z]*
    will return filename of both upper and lowercase..
    back out 118872-03 fix the problem. 118872-02 works..
    -- Frogdeep

    OK... not so sure the problem is with 118872-03 now. I look carefully even with the 118872-02 patch I still have the problem. So it is some other patch that is causing the problem. Let's say my system is fully patched.
    On system we only have recommendated cluster patched:
    % touch A aa B C D ee
    % ls [a-z]
    [a-z]: No such file or directory
    On fully patched box:
    % touch A aa B C D ee
    % ls [a-z]
    A B C D
    Doh! Help! Something is not right :*(
    -- Frogdeep

  • Setting file permissions for 'wheel' group files

    I have a bunch of files I copied from my PC when I made the transition to my Mac. I'm having problems moving or backing up many of the files apparently because the Mac has set the group for these files to 'wheel' and I'm not sure how to change them back. My efforts to chown or chgrp the files always result in "Operation not permitted" error messages.
    I have been able to select a file at a time in the finder and use the get-info option to change the permissions, but I need to do this for thousands of files and it takes too long manually.

    mpender wrote:
    I have been able to select a file at a time in the finder and use the get-info option to change the permissions, but I need to do this for thousands of files and it takes too long manually.
    Yes, you need a global fix. Download BatChmod Read the online documentation and online help. Let us know.
    -mj

  • Merge patch utility

    Hello Oracle Experts:
    I am applying around 15 patches. Some of these have pre-reqs.
    If I bundle them all in the same merge patch, is the utility smart enough to find the pre-reqs before applying the patch that needs them?
    In other words, as long as the pre-reqs are merged with the patch that needs them, will the patch complete ok, or do I need to apply all pre-reqs before applying the merge?
    I belive it to be the case that merger will be clever enough to use the unified driver to apply the pre-reqs before the patch that needs them.
    Just looking for confirmation before applying the merge.
    Thanks and peace.
    DA.

    If I bundle them all in the same merge patch, is the utility smart enough to find the pre-reqs before applying the patch that needs them?
    Yes.
    In other words, as long as the pre-reqs are merged with the patch that needs them, will the patch complete ok, or do I need to apply all pre-reqs before applying the merge?
    The patch will work properly and complete successfully (with respect to pre-req.).
    I belive it to be the case that merger will be clever enough to use the unified driver to apply the pre-reqs before the patch that needs them.
    Just looking for confirmation before applying the merge.
    Correct.
    When merging patches, please consider the following:
    - AD patches can be merged with other AD patches, but AD patches and non-AD patches cannot be merged
    - You can merge any non-AD patch with any other non-AD patch
    - You can merge patches with their listed prerequisite patches
    - You can merge individual patches with mini-packs and maintenance releases
    Thanks,
    Hussein

  • Java.util.set: problem with duplicate keys

    Hello, everybody,
    i have implemented a custom class C with its own equals()-method. I have two instances I1 and I2 of C with
    I1.equals(I2) = true
    if I add I1 and I2 to a set
    Set S = new HashSet();
    S.add(I1);
    S.add(I2);
    there are two elements I1 and I2 in the set. How is this possible?

    You must override the method hashCode() of your class C to be consistent with the comparison by equals() method.
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()

  • Java.util.Set

    This is related to the iterator;
    Here is a snipet of the code,
                   while(alive){
                        x = input.readInt();
                        y = input.readInt();
                        size = input.readInt();
                        int h = 0;
                        if(size == -1){}
                        else{
                        while(true){
                             x1 = (int) input.readInt();
                             if(x1 == -1){
                                  break;
                             y1 = (int) input.readInt();
                             bullets.add(new Integer(x1));
                             bullets.add(new Integer(y1));
                             System.out.println("Recieved Bullet At - " + x1 + ", " + y1);
                             h++;
                        main.updateAll(x, y, playerNumber, bullets );
                        System.out.println("Bullets Size On Server = " + bullets.size());
                        bullets.clear();
                        x = 0;
                        y = 0;
    And then the main.updateAll() method:
    Iterator i = players.iterator();
                        while(i.hasNext()){
                        io = (ServerIO) i.next();
                        if(io.playerNumber == playerNum){}
                        else{
                             io.output.writeInt(x);
                             io.output.writeInt(y);     
                             io.output.flush();
                             io.output.writeInt(1);
                             System.out.println(bullets.size() + " Sent Bullet Size");
                             io.output.flush();
                             Iterator itt = bullets.iterator();
                             while(itt.hasNext()){
                                  int bx = (Integer)itt.next();
                                  int by = (Integer)itt.next();
                                  io.output.writeInt(bx);
                                  io.output.writeInt(by);
                                  io.output.flush();
                                  System.out.println("Sent Bullet X Y" + bx + ", " + by);
                             io.output.writeInt(-1);
                             io.output.flush();
                        }Ok it produces this output:
    Recieved Bullet At - 742, 381
    2 Sent Bullet Size
    Sent Bullet X Y742, 381
    Bullets Size On Server = 2
    0 Sent Bullet Size
    Bullets Size On Server = 0
    Recieved Bullet At - 741, 381
    2 Sent Bullet Size
    Sent Bullet X Y381, 741
    As u can see 1st tym the bullets are read out of the Set the way they were put in, the second tym however they wernt? the were read from the set the oposite way? Any ideas??

    Set makes no guarantees about iteration order.
    If you want them to come out in the same order in which they were put in, use LinkedHashSet.

  • System image utility set to create NetRestore Image, creates Netboot Disk instead

    Hi, I'm trying to create some OS X 10.10.1 netrestore images and no matter what I do with selecting options SIU makes the image a netboot image instead of a netrestore image. Has anyone any suggestions?
    As a workaround I've created my image and used the .dmg with an old working netrestore image.

    Hi Patrick,
    If you are having issues creating a NetRestore image in System Image Utility, you may find the following articles helpful (apologies if you have already seen them):
    OS X Server: System Image Utility requires Recovery HD partition to create a NetRestore image - Apple Support
    OS X Server: Creating a single NetBoot, NetInstall or NetRestore image for multiple Mac computers - Apple Support
    Regards,
    - Brenden

  • How to Split java.util.Set object into multiple objects?

    Hi All,
    I'm having a collection of items in a Set. Assume that i'm having 10,000 items in Set A.
    Now i like to split the Set into multiple Set or Array such as each set or array consist of 100 records. i.e whenever
    i get more items i want to split them into mutiple set or array.
    Is there is any Java Api doesn't this function? or any other way to achieve this?
    Thanks,
    J.Kathir

    Iterate through them, placing them into different new collections.
    It may be easier to add the Set to a List, and then call sublist() a few times on the resulting List.

Maybe you are looking for