Benches macOS

3

error code 100002

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hello,

I'm form germany and I'm an amateur in objective-C.

My question is. What does it mean the error code 100002. I get this error code form the method AuthorizationCreate.

Who know an answer?

thanks!

PS: Sorry, my english is not so good.

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    PsychoH13

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Well, that's the first time I see such error... And you don't say much about your problem.

    So, we need some precisions : the name of a method in Objective-C/Cocoa always starts with a small case letter, here you put a capital to the name.

    To give you a better answer, we also need the class of that method. And alsowhere do you think you receive that error.

    Thank you

    Edit : Okay, that's a C function, not a method.

    Message was edited by: PsychoH13

  2. 0

    newvil

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yes it's a C function. It was my fault, Sorry. But thank you for anwser.

    I try to explain my problem. I'm new in a company and I have to do bug fixing in a great project.

    Well, I don't know anything about the project.

    The project contain an application and a manager. They are build in one package. The manager starts the application. After the start there you can choose the preference from the menu.

    In the preference are used the SFAuthorizationView class. The rights for authenticate are set when the preference pane is loading. The function AuthorizationCreate, AuthorizationRightGet are used in source code to set the rights. It's running without a fault.

    But: The manager of the project deletes the binary of the application, because of nobody can copy the binary from the builded package. When the binary is deleted the SFAuthorizationView doesn't unlock, when clicking on lock-button in the preference. (Nothing is happen when clicking on the button) The error code 100002 will be return by the function AuthorizationCreate, if the preference pane will be load.

    This problem exists when I running the project on Mac OS 10.5. On Mac OS 10.4 there are not this problem.

    Perhaps, the problem apears, because of changes between Tiger and Leopard. I don't know!

    I hope, I can solve this problem when I know what this error code does mean.

  3. 0

    Steve Herman1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    newvil wrote:

    Yes it's a C function. It was my fault, Sorry. But thank you for anwser.

    I try to explain my problem. I'm new in a company and I have to do bug fixing in a great project.

    Well, I don't know anything about the project.

    The project contain an application and a manager. They are build in one package. The manager starts the application. After the start there you can choose the preference from the menu.

    In the preference are used the SFAuthorizationView class. The rights for authenticate are set when the preference pane is loading. The function AuthorizationCreate, AuthorizationRightGet are used in source code to set the rights. It's running without a fault.

    But: The manager of the project deletes the binary of the application, because of nobody can copy the binary from the builded package. When the binary is deleted the SFAuthorizationView doesn't unlock, when clicking on lock-button in the preference. (Nothing is happen when clicking on the button) The error code 100002 will be return by the function AuthorizationCreate, if the preference pane will be load.

    This problem exists when I running the project on Mac OS 10.5. On Mac OS 10.4 there are not this problem.

    Perhaps, the problem apears, because of changes between Tiger and Leopard. I don't know!

    I hope, I can solve this problem when I know what this error code does mean.

    Hi newvil,

    Error 100002 appears to be the POSIX error ENOENT... meaning "no such file or directory". You can find it listed in the version of MacErrors.h found in the MacOSX10.5.sdk (but it's
    not found in MacErrors.h that is in the 10.4 SDK).


    kPOSIXErrorENOENT = 100002L, /* No such file or directory */

    So it sounds like the error may be related to the deletion of the binary that you mention above.

    But I can also tell you that there have been some changes between Tiger and Leopard in the way Apple recommends that applications handle certain types of coding that deal with authorization rights.

    I have an application, that works in combination with a privileged setuid helper tool, that was originally written for 10.3/10.4 and was based on some Apple Sample Code (I think it was called "MoreAuthSample"). I just recently discovered that my app/tool doesn't work correctly in Leopard. I also discovered that there is some new sample code on the Apple Developer site called
    BetterAuthorizationSample, posted less than a month ago, which describes a
    different recommended way of handling privileged operations under Leopard.

    I haven't studied the new sample code enough to figure out what's going wrong with my app yet.. so I can't reallly tell you if any of this could be directly related to your problem, but the new sample code might have some clues for you. Or, if you can figure out if the application you inherited could have been based on some of the older techniques described in the "MoreAuthSample" code that might also be a clue.

    Hope this helps,

    Steve